/*
 * @Author: lwHao
 * @Date: 2020-07-18 17:45:51
 * @LastEditors: lwHao
 * @LastEditTime: 2020-07-18 23:04:33
 */ 
const { merge } = require('webpack-merge')
const common = require('./webpack.common')
const { devServer } = require('./webpack.prod')

module.exports = merge(common,{
  mode: 'development',
  // 配置开发过程中的辅助工具 sourceMap相关的配置
  devtool: 'source-map',
  devServer: {
    // 指定额外的静态资源路径,字符串或数组
    contentBase: ['./public','./src/assets'],
    // 配置热更新
    hot: true,
  }
})